﻿@model BlogSite.Models.Blog

@{
    ViewBag.Title = "Create Blog";
}

<h2>Create New Blog</h2>
 <form id="formsubmit" method="post" action="/Home/Create">
    <input type="hidden" value="@Model.BlogId" name="blogid" id="blogid" />
    <div class="form-horizontal">
        <h4>Blog</h4>
        <hr />
        <div class="form-group">
            <div class = "control-label col-md-2">
                Model
            </div>
            <div class="col-md-10">
                <input type="text" name="name" id="name" value="@Model.Name"/>
            </div>
        </div>

        <div class="form-group">
            <div class = "control-label col-md-2">
                Topic
            </div>
            <div class="col-md-10">
                <input type="text" name="topic" id="topic" value="@Model.Topic"/>
            </div>
        </div>

        <div class="form-group">
            <div class = "control-label col-md-2">
                Post
            </div>
            <div class="col-md-10">
                <input type="text" name="post" id="post" value="@Model.Post"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
</form>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>

<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
